<?php
namespace Hive\Contact\Interview;
/**
 * Status Type Object.
 *
 * It represant the type of a status to be used in the contact workflow
 *
 * @author Xavier VILAIN
 * @package Hive\Contact\Interview
 * @license #hive-contact#
 *
 * @property string	$type			Id of the type
 * @property string	$language		Language
 * @property string	$label			Label
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 */
class Status  extends \Fox\Object\Versioned\Customizing {

	/**
	 * Reverse Link to Sources
	 * @var string
	 */
	const LINK_STATUS = 'status';
	
	/**
	 * Status Type "Closer"
	 * @var string
	 */
	const TYPE_CLOSE = 9;
}
\Fox\Dao::infos(Status::className(),new \Fox\Object\Info('contact_interview_status', \Fox\Databases::DB_APP));

// Link to i18n elements
\Fox\Object\Links::add(\Fox\Dao::link(Status\I18n::className(),Status::LINK_SOURCE_REFERENCE)
->to(Status::className(), Status::LINK_I18N)
->on('status')
//->cache(new \Fox\Dao\MemoryCacheZone(\Fox\Dao\MemoryCacheZone::PERIOD_FOREVER,Type::cacheDirectory()))
->versionFrom());